package com.sprocomm.agingtest.Video;

import com.sprocomm.agingtest.Tools;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyConnChangeReceiver extends BroadcastReceiver {
    private OnNetChange mOnNetChange;

    public MyConnChangeReceiver() {
    }

    public MyConnChangeReceiver(OnNetChange onNetChange) {
        this.mOnNetChange = onNetChange;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("MyConnChangeReceiver", "ConnChangeReciver");
        if (mOnNetChange != null){
            //mOnNetChange.onNetChange(Tools.getConnectyType(context));
        }
    }

    public interface OnNetChange {
        void onNetChange(int newState);
    }
}
